package modalities;
//Message containing the updated position or the word said by the user
public class Message {

	Double angle;
	Integer position;
	Double voicePower;
	String wordHeard;
	Integer numberHeard;
	Boolean pressureDetected;
	Double pressure;
	Boolean fusionDetecded;
	
	Boolean refresh;
	Character charRead;
	
	//Message for angle changing notification
	public Message(Double angle){ 
		this.angle = angle; 
	}
	
	public Message(Character charRead){ 
		this.charRead = charRead; 
	}
	
	//Message for angle changing notification
	public Message(Boolean pressureDetected, double pressure){ 
		this.pressureDetected = pressureDetected; 
		this.pressure = pressure;
	}
	
	public Message(Boolean fusionDetecded, String keywordHeard){ 
		this.fusionDetecded = fusionDetecded; 
		this.wordHeard = keywordHeard;
		
	}
	
	
	//Message for power changing notification
	public Message(Double voicePower, boolean power){
		this.voicePower = voicePower;
	}
	
	//Message for position changing notification
	public Message(Integer position){
		this.position = position;
	}
	
	//Message for transmitting word detection
	public Message(String wordHeard){
		this.wordHeard = wordHeard;
	}
	
	//Message to order a refresh for the gui
	public Message(){
		this.refresh = true;
	}
	
	public Message(Integer numberHeard, String wordHeard) {
		this.numberHeard = numberHeard;
		this.wordHeard = wordHeard;
		
	}

	//Getters
	public Boolean  getRefresh()		  { return refresh; }
	public Double   getAngle() 			  { return angle; }
	public Double   getVoicePower() 	  { return voicePower;}
	public Integer  getPosition()		  { return position; }
	public String   getWordHeard() 		  { return wordHeard; }
	public Boolean 	getPressureDetected() { return pressureDetected;}
	public Double 	getPressure() 		  { return pressure;}
	public Integer 	getNnumberHeard()     { return numberHeard;}
	public Character   getChar() 		  { return charRead;}
	public Boolean  getFusionDetected()   { return fusionDetecded;}
		

	
	
}
